<div ng-controller="scoreShopSummaryStatsCtrl
">
    <style>
        table td,table th{vertical-align: middle;height: 50px;text-align: center;font-size: 14px; }

    </style>
    <div class="form-group" style="margin-top: 20px;">

        <form><label class="control-label">小区：</label>
            <select ng-options="m.objId as m.communityName for m in communityList.data" ng-model="input.communityName" id = "option_xq" ng-change="getCommunityStats(input)">
                <option value="">-- 请选择 --</option>
            </select>
            <span>&nbsp;&nbsp;&nbsp;统计日期：<input type="text" ng-model="input.startDate" style="" value="" placeholder="yyyy-MM-dd hh:mm:ss"></span>
            <span>到　<input type="text" ng-model="input.endDate" value="" placeholder="yyyy-MM-dd hh:mm:ss"></span>

            <button style="margin-left: 20px;" type="submit" class="btn-primary btn-sm" ng-click="getCommunityStats(input)">搜索</button><br>
            <span style="color: darkblue; height:10px" id="loader"></span>
        </form>
    </div>

    <div class="tab-content">
        <div class="tab-pane active" id="tab_a">
            <div id="summaryDescription">
                合计: 获得情值<span id="totalScoreGained">{{totalScoreGained}}</span>, 消耗情值<span id="totalScoreConsumed">{{totalScoreConsumed}}</span><span id="dateRange" style="color:red">&nbsp;&nbsp;{{startDate}} 到 {{endDate}}</span><br>
                合计: 当前剩余情值 <span id="totalScoreRemaining">{{totalCurrentScore}}</span>
            </div>
            <table class="table table-condensed">
                <thead>
                <tr>
                    <th>小区名称</th>
                    <th>获得情值</th>
                    <th>消耗情值</th>
                    <th>当前剩余情值</th>
                    <!--<th>操作</th>-->
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="community in allCommunities">
                    <td>{{community.communityName}}</td>
                    <td>{{community.scoreGained}}</td>
                    <td>{{community.scoreConsumed}}</td>
                    <td>{{community.currentScore}}</td>
                    <!--<td><button type="button" class="btn btn-danger btn-sm" ng-click="removeCommunity(community)">删除</button></td>-->
                </tr>
                </tbody>
            </table>
            <!--<div style="float: right">-->
                <!--<a ng-click="export()" class="btn-secondary btn-sm" style="padding:12px; margin: 10px">导出</a>-->
            <!--</div>-->
        </div>
    </div>

</div>

